class Rectangle:
	def __init__(self):
		self.width = 0
		self.height = 0
	@property
	def size(self):
		return self.width, self.height
	@size.setter
	def size(self, size):
		self.width, self.height = size
		
class Rectangle:
	def __init__(self):
		self.width = 0
		self.height = 0
	def setSize(self, size):
		self.width, self.height = size
	def getSize(self):
		return self.width, self.height
	size = property(getSize, setSize)
	
class Rectangle:
	def __init__(self):
		self.width = 0
		self.height = 0
	def __setattr__(self, name, value):
		if name == 'size':
			self.width, self.height = value
		else:
			self.__dict__[name] = value
	def __getattr__(self, name):
		if name == 'size':
			return self.width, self.height
		else:
			raise AttributeError
	
if __name__ == '__main__':
	rect = Rectangle()
	rect.size = 12, 24
	print 'rect.size = ', rect.size